//
//  EpointGetOnlineUsers.m
//  EpointFrame5
//
//  Created by 李亚春 on 14-3-10.
//  Copyright (c) 2014年 Epoint. All rights reserved.
//

#import "EpointGetOnlineUsers.h"

@implementation EpointGetOnlineUsers

-(void)execute
{
//    String url = "http://192.168.188.35:5880/openapi/openapi.php?wsdl";
//    String namespace = "urn:OpenApi";
//    String method0 = "GetOnlineUsers_xml";// 方法名称
//    WebServiceUtilDAL webservice0 = new WebServiceUtilDAL(url, method0,
//                                                          namespace);
//    
//    webservice0.addProperty("key", "5DEDD10D2E434A139A05953BDB66CC68");
//    webservice0.addProperty("loginstatus", -1);
//    String bs0 = webservice0.start();
    
    
    NSString *url = @"http://192.168.188.35:5880/openapi/openapi.php?wsdl";
    NSString *namespace = @"urn:OpenApi";
    //请求接口
    EpointWebServiceUtil *ws = [[EpointWebServiceUtil alloc]initWithUrl:url namespace:namespace method:@"GetOnlineUsers_xml"];
    [ws addParameterForString:@"key" value:@"5DEDD10D2E434A139A05953BDB66CC68"];
    [ws addParameterForInteger:@"loginstatus" value:-1];
    NSString *bs =  ws.start;
    NSLog(@"%@",bs);
}

@end
